package com.service.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.service.dao.po.OtcOrderPO;
import com.service.dao.query.OtcQueryParams;
import com.service.dao.model.OtcOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 场外交易
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2019-11-18 10:15:22
 */
@Mapper
public interface OtcOrderMapper extends BaseMapper<OtcOrder> {


    List<OtcOrderPO> selectByMemberAccountAndOtcType(@Param("queryParams") OtcQueryParams queryParams);

    OtcOrder selectMaxPriceOrder(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

    OtcOrder selectMinPriceOrder(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

    OtcOrder selectLastOrderByTime(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

}
